package servlet;

import java.io.IOException;
import java.util.LinkedList;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import domain.Bet;
import domain.Player;
import domain.Table;

public class OkBetServlet extends HttpServlet {
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		Table table = (Table) req.getSession().getAttribute("table");
		AuxTable aux = (AuxTable) req.getSession().getAttribute("aux");
		
		req.getParameterMap();	
		aux = new AuxTable();
		table.betsPay();
		
		List<Bet> listEmpty = new LinkedList<Bet>();
		table.setActualBets(listEmpty);
		req.getRequestDispatcher("table.jsp").forward(req, resp);
	}
}
